package com.poker.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName UserHonor
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/1216:30
 * @Version 1.0
 **/
@Entity
@Data
@Table(name = "user_honor")
public class UserHonor implements Serializable {

    private static final long serialVersionUID = -7125765732072681112L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String id;

    @Column(name = "activity_id")
    private String activityId;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "honor_url")
    private String honorUrl;

    @Column(name = "ranking")
    private String ranking;
    
    @Column(name = "details")
    private String details;

    @Column(name = "honor_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date honorDate;
}
